<?php 
	class Animal{
		public $name="no-name";
		public function __construct($name){
			// echo "I'm alive!\n";
			$this->name = $name;
		}
		
		public function __destruct(){
			echo "I'm dead now!\n";
		}
	}

	$dog = new Animal("cat");
	echo $dog->name;
 ?>